package com.kgc.novel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kgc.novel.domain.entity.BookContent;
import com.kgc.novel.domain.param.BookContentParam;
import com.kgc.novel.domain.vo.BookContentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookContentMapper extends BaseMapper<BookContent> {

    List<BookContentVO> getAllList(BookContentParam bookContentParam);

    long getCount(@Param("bookId") String bookId,
                  @Param("chapter") String chapter,
                  @Param("status") String status);

    BookContentVO getSingle(String id);

    int addSingle(BookContent bookContent);

    int updateSingle(BookContent bookContent);

    int deleteSingle(String id);

    int deleteAllSingle(@Param("ids") List<String> ids);

}
